﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSpace.Web;

namespace SmartSpace.WebApp._common
{
    public partial class Picker : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string type = Request.GetString("code");
            if (type.ToUpper() == "ORG")
            {
                Response.Redirect("~/Modules/Orgs/Pickers/OrgPicker.aspx");
            }
            else if (type.ToUpper() == "ASSET")
            {
                Response.Redirect("~/Modules/Core/Pickers/CodePicker.aspx?category=ASSETTYPE");
            }
        }
    }
}